package com.woniu.zsd.recycle.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu.zsd.recycle.dto.MaterialTypeTreeDto;
import com.woniu.zsd.recycle.model.MaterialType;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.zsd.recycle.param.AddTypeParam;
import com.woniu.zsd.recycle.param.SelectTypeParam;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 彭于晏
 * @since 2025年02月18日
 */
public interface MaterialTypeService extends IService<MaterialType> {
    public List<MaterialTypeTreeDto> selectMaterialTypeTree()throws Exception;
    public void add(AddTypeParam param)throws Exception;
    public Page<MaterialType> selectType(SelectTypeParam param)throws Exception;
    public void disable(Integer materialTypeId)throws Exception;
    public void enable(Integer materialTypeId)throws Exception;
    public void delete(Integer materialTypeId)throws Exception;

    List<MaterialType> userSelectType()throws Exception;
}
